package com.retail.common.core.exception;

/**
 * @Author: 靳家振
 * @Date: 2024/2/26 21:30
 * @Description:
 **/


public class ProductException extends RuntimeException{
    private static final long serialVersionUID=1L;

    private Integer code;

    private String message;

    private String detailMessage;

    public Integer getCode() {
        return code;
    }


    @Override
    public String getMessage() {
        return message;
    }

    public ProductException setMessage(String message) {
        this.message = message;
        return this;
    }

    public String getDetailMessage() {
        return detailMessage;
    }

    public void setDetailMessage(String detailMessage) {
        this.detailMessage = detailMessage;
    }

    public ProductException(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public ProductException(String message) {
        this.message = message;
    }

    public ProductException() {
    }
}
